/*
 * PageRequest.java
 * Copyright (c) 2014, 2019, Kiri. 
 * All rights reserved.
 */
package com.onesalt.web.api.request;

/**
 * 
 *
 * @author kiri
 * @date 2015年4月19日
 * @version 1.0
 */
public class PageRequest extends Request {

	private static final long serialVersionUID = -6561870025456838906L;

	private int page;
	
	private int size;

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}

	public org.springframework.data.domain.PageRequest getRequest() {
		return new org.springframework.data.domain.PageRequest(getPage(), getSize());
	}
}
